#ifndef BROWSEITEMMENU_H
#define BROWSEITEMMENU_H

#include <string>

#include "SelectionMenu.h"
#include "CartRelatedAction.h"
#include "ItemsBrowser.h"

using std::string;

class BrowseItemMenu: public SelectionMenu, public CartRelatedAction
{
public:
	//Constructors

	//Constructor which initializes all the necessary info of the "browse item" menu
	BrowseItemMenu(Stock* companyStock, int itemType, string itemName);

	//Member Functions

	//Perform the action according to user's selection
	void performAction(Stock* companyStock, Cart* theCart);

	//Destructors

	//Delete the "itemDisplayer" before the class is destoryed
	~BrowseItemMenu();

private:
	//Data Members
	int itemTypeID;
	ItemsBrowser* itemDisplayer;
};

#endif;